package com.zking.ssm.PMQ.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.ToString;

import java.util.Date;

@ToString
public class User {
    private Long usrId;

    private String usrName;

    private String usrPassword;

    private Integer usrFlag;

    private String usrYx;

    private String usrPhone;

    @JsonFormat(pattern="yyyy年MM月dd日", timezone = "GMT+8")
    private Date usrDate;

    private Integer[] usrIds;

    private Long roleId;//角色Id


    public User(Long usrId, String usrName, String usrPassword, Integer usrFlag, String usrYx, String usrPhone, Date usrDate) {
        this.usrId = usrId;
        this.usrName = usrName;
        this.usrPassword = usrPassword;
        this.usrFlag = usrFlag;
        this.usrYx = usrYx;
        this.usrPhone = usrPhone;
        this.usrDate = usrDate;
    }

    public User() {
        super();
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Integer[] getUsrIds() {
        return usrIds;
    }

    public void setUsrIds(Integer[] usrIds) {
        this.usrIds = usrIds;
    }

    public Long getUsrId() {
        return usrId;
    }


    public void setUsrId(Long usrId) {
        this.usrId = usrId;
    }

    public String getUsrName() {
        return usrName;
    }

    public void setUsrName(String usrName) {
        this.usrName = usrName;
    }

    public String getUsrPassword() {
        return usrPassword;
    }

    public void setUsrPassword(String usrPassword) {
        this.usrPassword = usrPassword;
    }

    public Integer getUsrFlag() {
        return usrFlag;
    }

    public void setUsrFlag(Integer usrFlag) {
        this.usrFlag = usrFlag;
    }

    public String getUsrYx() {
        return usrYx;
    }

    public void setUsrYx(String usrYx) {
        this.usrYx = usrYx;
    }

    public String getUsrPhone() {
        return usrPhone;
    }

    public void setUsrPhone(String usrPhone) {
        this.usrPhone = usrPhone;
    }

    public Date getUsrDate() {
        return usrDate;
    }

    public void setUsrDate(Date usrDate) {
        this.usrDate = usrDate;
    }
}